home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / WOLEAOBJ.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  3.0 KB  |  106 lines

  1. /*************************************************************************
  2.  *
  3.  * WOleApplicationObject -- OLE Application Object class
  4.  *
  5.  *
  6.  *   Events:
  7.  *
  8.  *
  9.  *************************************************************************/
  10.  
  11. #ifndef _WOLEAOBJ_HPP_INCLUDED
  12. #define _WOLEAOBJ_HPP_INCLUDED
  13.  
  14. #ifndef _WNO_PRAGMA_PUSH
  15. #pragma pack(push,8);
  16. #pragma enum int;
  17. #endif
  18.  
  19. #ifndef _WOBJECT_HPP_INCLUDED
  20. #  include "wobject.hpp"
  21. #endif
  22. #ifndef _WSTRING_HPP_INCLUDED
  23. #  include "wstring.hpp"
  24. #endif
  25.  
  26. // forward class declarations
  27. class WCMCLASS WIMessageFilter;
  28. class WCMCLASS WWindow;
  29.  
  30. class WCMCLASS WOleApplicationObject : public WObject {
  31.     WDeclareSubclass( WOleApplicationObject, WObject );
  32.  
  33.     public:
  34.  
  35.         /**********************************************************
  36.          * Constructors and Destructors
  37.          *********************************************************/
  38.  
  39.         WOleApplicationObject( void );
  40.  
  41.         virtual ~WOleApplicationObject();
  42.  
  43.         /**************************************************************
  44.          * Properties
  45.          **************************************************************/
  46.  
  47.         WBool SetShowAutomationErrors( WBool set );
  48.         WBool GetShowAutomationErrors( void ) const;
  49.  
  50.         WBool SetUseServerBusyDialog( WBool set );
  51.         WBool GetUseServerBusyDialog( void ) const;
  52.  
  53.         WBool SetUseNotRespondingDialog( WBool set );
  54.         WBool GetUseNotRespondingDialog( void ) const;
  55.  
  56.         WBool SetApplicationWindow( WWindow * win );
  57.         WWindow *GetApplicationWindow( void ) const;
  58.  
  59.         WBool SetServerBusyTimeout( WUInt timeout );
  60.         WUInt GetServerBusyTimeout( void ) const;
  61.  
  62.         WBool SetNotRespondingTimeout( WUInt timeout );
  63.         WUInt GetNotRespondingTimeout( void ) const;
  64.  
  65.         WWindowHandle GetBusyDialogHandle( void ) const;
  66.  
  67.         static WOleApplicationObject * GetOleApplicationObject( void );
  68.         static WBool OleApplicationInitialize( void );
  69.         static WBool OleApplicationUnInitialize( void );
  70.  
  71.         /**************************************************************
  72.          * Methods
  73.          **************************************************************/
  74.  
  75.         /**************************************************************
  76.          * Internal Methods
  77.          **************************************************************/
  78.  
  79.         WBool Initialize( void );
  80.         WBool Uninitialize( void );
  81.  
  82.     protected:
  83.  
  84.         WBool InitMessageFilter( void );
  85.         void FiniMessageFilter( void );
  86.  
  87.         /**********************************************************
  88.          * Data Members
  89.          *********************************************************/
  90.     
  91.     protected:
  92.         WBool           _showAutomationErrors;
  93.  
  94.     public:
  95.         WIMessageFilter *_pIMessageFilter;
  96.  
  97. };
  98.  
  99. #ifndef _WNO_PRAGMA_PUSH
  100. #pragma enum pop;
  101. #pragma pack(pop);
  102. #endif
  103.  
  104. #endif // _WOLEAOBJ_HPP_INCLUDED
  105.  
  106.